this.BX=this.BX||{};(function(e,s){"use strict";let a=e=>e,l,t;const i=Object.freeze({TOP:"top",BOTTOM:"bottom"});var r=babelHelpers.classPrivateFieldLooseKey("container");var o=babelHelpers.classPrivateFieldLooseKey("avatar");var b=babelHelpers.classPrivateFieldLooseKey("anglePosition");var n=babelHelpers.classPrivateFieldLooseKey("content");var c=babelHelpers.classPrivateFieldLooseKey("textBoxBaseClassname");var v=babelHelpers.classPrivateFieldLooseKey("containerBaseClassname");var d=babelHelpers.classPrivateFieldLooseKey("getTextBoxClassname");var p=babelHelpers.classPrivateFieldLooseKey("getContainerClassname");var P=babelHelpers.classPrivateFieldLooseKey("getHtmlContent");var u=babelHelpers.classPrivateFieldLooseKey("createContainer");var h=babelHelpers.classPrivateFieldLooseKey("isValidAnglePosition");var H=babelHelpers.classPrivateFieldLooseKey("isValidContent");class B{constructor(e){Object.defineProperty(this,H,{value:O});Object.defineProperty(this,h,{value:f});Object.defineProperty(this,u,{value:g});Object.defineProperty(this,P,{value:y});Object.defineProperty(this,p,{value:L});Object.defineProperty(this,d,{value:F});Object.defineProperty(this,r,{writable:true,value:null});Object.defineProperty(this,o,{writable:true,value:void 0});Object.defineProperty(this,b,{writable:true,value:void 0});Object.defineProperty(this,n,{writable:true,value:""});Object.defineProperty(this,c,{writable:true,value:"ui-advice__text-box"});Object.defineProperty(this,v,{writable:true,value:"ui-advice"});babelHelpers.classPrivateFieldLooseBase(this,o)[o]=s.Type.isString(e.avatarImg)?e.avatarImg:"";babelHelpers.classPrivateFieldLooseBase(this,b)[b]=babelHelpers.classPrivateFieldLooseBase(this,h)[h](e.anglePosition)?e.anglePosition:B.AnglePosition.TOP;babelHelpers.classPrivateFieldLooseBase(this,n)[n]=babelHelpers.classPrivateFieldLooseBase(this,H)[H](e.content)?e.content:"";babelHelpers.classPrivateFieldLooseBase(this,u)[u]()}getAvatar(){return babelHelpers.classPrivateFieldLooseBase(this,o)[o]}setAvatar(e){babelHelpers.classPrivateFieldLooseBase(this,o)[o]=e;return babelHelpers.classPrivateFieldLooseBase(this,o)[o]}getContent(){return babelHelpers.classPrivateFieldLooseBase(this,n)[n]}setContent(e){if(babelHelpers.classPrivateFieldLooseBase(this,H)[H](e)){babelHelpers.classPrivateFieldLooseBase(this,n)[n]=e;return babelHelpers.classPrivateFieldLooseBase(this,n)[n]}return null}getContainer(){return babelHelpers.classPrivateFieldLooseBase(this,r)[r]}renderTo(e){if(s.Type.isDomNode(e)){s.Dom.append(babelHelpers.classPrivateFieldLooseBase(this,r)[r],e);return e}else{return null}}}function F(){let e=babelHelpers.classPrivateFieldLooseBase(this,c)[c];if(babelHelpers.classPrivateFieldLooseBase(this,b)[b]===i.BOTTOM){e+=" --angle-bottom"}else if(babelHelpers.classPrivateFieldLooseBase(this,b)[b]===i.TOP){e+=" --angle-top"}else{e+=" --angle-bottom"}return e}function L(){let e=babelHelpers.classPrivateFieldLooseBase(this,v)[v];switch(babelHelpers.classPrivateFieldLooseBase(this,b)[b]){case i.BOTTOM:e+=" --angle-bottom";break;case i.TOP:e+=" --angle-top";break;default:e+=" --angle-bottom"}return e}function y(){if(s.Type.isString(babelHelpers.classPrivateFieldLooseBase(this,n)[n])){return s.Tag.render(l||(l=a`<span>${0}</span>`),babelHelpers.classPrivateFieldLooseBase(this,n)[n])}return babelHelpers.classPrivateFieldLooseBase(this,n)[n]}function g(){if(!babelHelpers.classPrivateFieldLooseBase(this,r)[r]){babelHelpers.classPrivateFieldLooseBase(this,r)[r]=s.Tag.render(t||(t=a`
				<div class="${0}">
					<div class="ui-advice__avatar-box">
						<span class="ui-advice__avatar ui-icon ui-icon-common-user">
							<i style="background-image: url('${0}')"></i>
						</span>
					</div>
					<div class="${0}"></div>
				</div>
				`),babelHelpers.classPrivateFieldLooseBase(this,p)[p](),encodeURI(this.getAvatar()),babelHelpers.classPrivateFieldLooseBase(this,d)[d]());const e=babelHelpers.classPrivateFieldLooseBase(this,r)[r].querySelector(`.${babelHelpers.classPrivateFieldLooseBase(this,c)[c]}`);s.Dom.append(babelHelpers.classPrivateFieldLooseBase(this,P)[P](),e)}return babelHelpers.classPrivateFieldLooseBase(this,r)[r]}function f(e){return s.Type.isString(e)&&Object.values(i).includes(e)}function O(e){return s.Type.isString(e)||s.Type.isDomNode(e)}B.AnglePosition=i;e.AdviceAnglePosition=i;e.Advice=B})(this.BX.Ui=this.BX.Ui||{},BX);
//# sourceMappingURL=advice.bundle.map.js